﻿@model IEnumerable<TestHttpModules.Product_Comment>
@{
    ViewBag.Title = "ProductComment";
}
<h2>
    ProductComment</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
        </th>
        <th>
            ProductID
        </th>
        <th>
            UserID
        </th>
        <th>
            CommentTitle
        </th>
        <th>
            CommentInfo
        </th>
    </tr>
    @if (Model != null && Model.Count() > 0)
    {
        foreach (var item in Model)
        {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
                @Html.ActionLink("Details", "Details", new { id = item.ID }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.ID })
            </td>
            <td>
                @item.ProductID
            </td>
            <td>
                @item.UserID
            </td>
            <td>
                @item.CommentTitle
            </td>
            <td>
                @item.CommentInfo
            </td>
        </tr>
        }
    }
</table>
